package org.dzq.designmode.command;

/**
 * @ClassName: ConcreteCommand
 * @Package: org.dzq.designmode.command
 * @author: 越
 * @date: 2023/6/19 20:58
 * @Description: 具体命令
 */
public class ConcreteCommand implements Command{

    private Receiver receiver;

    public ConcreteCommand (Receiver receiver){
        this.receiver = receiver;
    }

    @Override
    public void executeCommand() {
        receiver.washClothe();
        receiver.watchTV();
        receiver.takeShower();
    }
}
